import scala.actors.Actor._

object MyObj{
  println("go inside")
  def x:String="hello"
}


val lst=List(1,2,3,5,7);

val slst=List("hey", "Jude")

//("hi"::slst).foreach(printf(_))


println("")

println(MyObj.x)

val act=actor{
  loop{
    receive {
      case a:String => println("I got a String")
      case _ => println("what the fuck")
    }
  }
}

act ! "he"
act ! 1
